let express = require('express')
let router = express.Router()
let goods = require('./API/goodsList')
let users = require('./API/usersList')
let glist = require('./API/glist')
let ulist = require('./API/ulist')
let login = require('./API/login')
let cases = require('./API/caseList')
let clist = require('./API/clist')
let cookies = require('./API/cookieList')
let colist = require('./API/cookie')
let projects = require('./API/projectList')
let plist = require('./API/plist')


router.get('/goodsList', goods.get)
router.get('/users',users.get)
router.get('/cases',cases.get)
router.get('/cookies',cookies.get)
router.get('/projects',projects.get)

router.get('/glist/get',glist.get)
router.get('/glist/add',glist.add)
router.get('/glist/update',glist.update)
router.get('/glist/del',glist.del)

router.get('/ulist/get',ulist.get)
router.get('/ulist/add',ulist.add)
router.get('/ulist/update',ulist.update)
router.get('/ulist/del',ulist.del)

router.get('/login',login.login)
router.post('/register',login.register)

router.get('/clist/get',clist.get)
router.get('/clist/add',clist.add)
router.get('/clist/update',clist.update)
router.get('/clist/del',clist.del)

router.get('/colist/get',colist.get)
router.get('/colist/add',colist.add)
router.get('/colist/update',colist.update)
router.get('/colist/del',colist.del)

router.get('/plist/get',plist.get)
router.get('/plist/add',plist.add)
router.get('/plist/update',plist.update)
router.get('/plist/del',plist.del)
module.exports = router
